var app = angular.module('lmApp',[]);
app.controller('lmController',function($scope,$http){

    /*获取数据操作*/
    $scope.getLaboratoryMsg = function () {
        $http({
            method: 'POST',
            url: 'laboratory/getLaboratoryMsg',
            data: $.param({"lname":$scope.lname}),
            headers: { 'Content-Type': 'application/x-www-form-urlencoded'}
        }).then(function successCallback(response) {
            console.log(response);
            $scope.list = response.data.lmsg;
            console.log($scope.list);

        }, function errorCallback(response) {
            console.log("获取实验室信息失败！");
        });
    };

    $scope.getLaboratoryMsg();


});